
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgChildForm, NgChildFormArray, NgValidateForm } from '@farris/devkit';
import { DateConverter, MultiLangConverter } from '@farris/kendo-binding';

@Injectable()
@NgValidateForm({
    formGroupName: '客户信息',
    enableValidate: false
})

@Injectable()
export class DataGridComponentViewmodelForm extends Form {
    @NgFormControl({
        id: 'name',
        name: "{{name_ea7eb3b3_t743}}",
        binding: 'name',
        updateOn: 'blur',
        defaultI18nValue: '姓名',
    })
    name: FormControl;

    @NgFormControl({
        id: 'code',
        name: "{{code_97a9455b_acac}}",
        binding: 'code',
        updateOn: 'blur',
        defaultI18nValue: '编号',
    })
    code: FormControl;

    @NgFormControl({
        id: 'telephone',
        name: "{{telephone_bb652a6c_4suw}}",
        binding: 'telephone',
        updateOn: 'blur',
        defaultI18nValue: '联系电话',
    })
    telephone: FormControl;

    @NgFormControl({
        id: 'mailbox',
        name: "{{mailbox_e29c702a_bhcr}}",
        binding: 'mailbox',
        updateOn: 'blur',
        defaultI18nValue: '邮箱',
    })
    mailbox: FormControl;

    @NgFormControl({
        id: 'orCorPor',
        name: "{{orCorPor_814f64c5_d18h}}",
        binding: 'orCorPor',
        updateOn: 'change',
        defaultI18nValue: '是否法人/负责人',
    })
    orCorPor: FormControl;

    @NgFormControl({
        id: 'remark',
        name: "{{remark_a5121484_sp2n}}",
        binding: 'remark',
        updateOn: 'blur',
        defaultI18nValue: '备注',
    })
    remark: FormControl;

    @NgFormControl({
        id: 'state',
        name: "{{state_e5a284c2_hoyu}}",
        binding: 'state',
        updateOn: 'blur',
        defaultI18nValue: '状态',
    })
    state: FormControl;

    @NgFormControl({
        id: 'organization',
        name: "{{organization_a5e862bc_v5gt}}",
        binding: 'organization',
        updateOn: 'blur',
        defaultI18nValue: '公司',
    })
    organization: FormControl;

    @NgFormControl({
        id: 'gender',
        name: "{{gender_827dfbca_5r4i}}",
        binding: 'gender',
        updateOn: 'blur',
        defaultI18nValue: '性别',
    })
    gender: FormControl;

    @NgFormControl({
        id: 'countryOrArea',
        name: "{{countryOrArea_8dc95028_kxou}}",
        binding: 'countryOrArea',
        updateOn: 'blur',
        defaultI18nValue: '所属国家或地区',
    })
    countryOrArea: FormControl;

    @NgFormControl({
        id: 'location',
        name: "{{location_becc1eba_6ft5}}",
        binding: 'location',
        updateOn: 'blur',
        defaultI18nValue: '常驻地',
    })
    location: FormControl;

}